package action;
import dao.*;
import java.util.List;
import java.util.Map;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class ExitAction extends ActionSupport{
	@Override
	public String execute() throws Exception{
		ActionContext ac=ActionContext.getContext();
		Map session=ac.getSession();
		System.out.println("Exit:\nUser:"+session.get("User"));
		session.remove("User");
		System.out.println("User:"+session.get("User"));
	    return SUCCESS;
	}
}
